﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.db2
{
	// Token: 0x020001D1 RID: 465
	public class TDb2ConditionDeclaration : TCustomDb2Stmt
	{
		// Token: 0x06000F94 RID: 3988 RVA: 0x0030BAEC File Offset: 0x00309CEC
		public TDb2ConditionDeclaration(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstdb2conditiondeclaration;
		}

		// Token: 0x06000F95 RID: 3989 RVA: 0x0030BB00 File Offset: 0x00309D00
		internal override void buildsql()
		{
		}

		// Token: 0x06000F96 RID: 3990 RVA: 0x0030BB02 File Offset: 0x00309D02
		internal override void clear()
		{
		}

		// Token: 0x06000F97 RID: 3991 RVA: 0x0030BB04 File Offset: 0x00309D04
		internal override string getasprettytext()
		{
			return "";
		}

		// Token: 0x06000F98 RID: 3992 RVA: 0x0030BB0B File Offset: 0x00309D0B
		internal override void iterate(TVisitorAbs pvisitor)
		{
		}

		// Token: 0x06000F99 RID: 3993 RVA: 0x0030BB10 File Offset: 0x00309D10
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			TDeclareSqlNode tdeclareSqlNode = (TDeclareSqlNode)this.rootNode;
			base.doParseStatement(psql);
			this.conditionName = tdeclareSqlNode.ConditionName;
			return 0;
		}

		// Token: 0x170002E8 RID: 744
		// (get) Token: 0x06000F9A RID: 3994 RVA: 0x0030BB48 File Offset: 0x00309D48
		// (set) Token: 0x06000F9B RID: 3995 RVA: 0x0030BB50 File Offset: 0x00309D50
		public virtual TObjectName ConditionName
		{
			get
			{
				return this.conditionName;
			}
			set
			{
				this.conditionName = value;
			}
		}

		// Token: 0x06000F9C RID: 3996 RVA: 0x0030BB59 File Offset: 0x00309D59
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000F9D RID: 3997 RVA: 0x0030BB69 File Offset: 0x00309D69
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0400137A RID: 4986
		private TObjectName conditionName;
	}
}
